

%% Example of Matlab's Publish Functionaltiy
% Go to the publish tab and hit the publish button.
% You can change various options including sending output to PDF and hiding
% code. 

%Show this code so it shows up when hiding code in options
%%
%   for ii=1:10
%       ii
%   end

% Here is some latex markup.  
%%
% $x^2+e^{\pi i}$

%Some code that could be hidden:
for ii=1:3
    ii
end

%% Our figures will be embedded in the output as well. 

X=(1:100);
Y=sin(X/10);

figure
plot(X,Y)
xlabel('X')
ylabel('Y')


% Many other formatting options are available.  Have fun!


